package com.shycloud.mido.organ.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
  * @author Xiaoxing Yu
  * @date 2020/6/8
  **/
@Data
@TableName(value = "line_product_update_record")
public class LineProductUpdateRecord {
    /**
     * 自增主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 同一次分配的id
     */
    @TableField(value = "assign_id")
    private String assignId;

    /**
     * 机构id
     */
    @TableField(value = "org_id")
    private Integer orgId;

    /**
     * 运营商id
     */
    @TableField(value = "opt_id")
    private Integer optId;

    /**
     * 产品id
     */
    @TableField(value = "product_id")
    private Integer productId;

	/**
	 * 是否工作室
	 */
	@TableField(value = "is_studio")
	private boolean isStudio;

    /**
     * 分配的数量，可为负数
     */
    @TableField(value = "assign_amount")
    private Integer assignAmount;

    /**
     * businessId
     */
    @TableField(value = "biz_id")
    private String bizId;

    /**
     * 扩展内容
     */
    @TableField(value = "extension")
    private String extension;

    /**
     * 注释
     */
    @TableField(value = "comment")
    private String comment;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 创建人
     */
    @TableField(value = "created_by")
    private String createdBy;

    public static final String COL_ID = "id";

    public static final String COL_ASSIGN_ID = "assign_id";

    public static final String COL_ORG_ID = "org_id";

    public static final String COL_OPT_ID = "opt_id";

    public static final String COL_PRODUCT_ID = "product_id";

    public static final String COL_ASSIGN_AMOUNT = "assign_amount";

    public static final String COL_BIZ_ID = "biz_id";

    public static final String COL_EXTENSION = "extension";

    public static final String COL_COMMENT = "comment";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_CREATED_BY = "created_by";
}